package com.devilmole.vote.controller;

import lombok.extern.log4j.Log4j2;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.util.FileCopyUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Iterator;

/**
 * Created by devilmole on 2017/8/30.
 */
@Controller
@Log4j2
public class IndexController {


    @RequestMapping(method = {RequestMethod.GET},value = "/index")
    public String index(){
        log.info("in index controller---->");
        return "demo/summernote";
    }
}
